<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Let 函数变量作用域</title>

    <script src="js/jquery.min.js"></script>
    <script src="js/traceur.js"></script>
    <script src="js/bootstrap.js"></script>

    <script type="module">
        let a = 12; //全局变量
        function myFunction() {
            console.log(a); //访问全局变量
            let b = 13; //局部变量
            if(true){
                let c = 14;
                console.log(b);
            }
            console.log(c);
        }
        myFunction();
    </script>
</head>
<body>

</body>
</html>